<div id="event-id" data-event-id=<%= current_event.id %> class="hidden"></div>
<div id="session-id" data-session-id=<%= params[:session_id]%> class="hidden"></div>

<title>签到进度查询</title>

<div class="container">
  <div class="row">
    <div class="col-xs-12" style="margin-bottom: 15px;margin-top: 15px;">
      <h3 style="display: inline;"><%= @seller.name %>，你好</h3>
      <a href="/seller/events/<%= current_event.id %>/sessions/~" class="btn btn-default" style="float: right;">退出</a>
    </div>

    <div class="form-group">
      <label for="" class="col-xs-3 control-label">当前场次</label>
      <div class="col-xs-9">
        <%=select_tag :session_id, options_for_select(current_event.sessions.map {|s| [s.full_name, s.id ]}, url_for), class: 'input-sm form-control input-s-sm inline', id: 'select-session-checkin'%>
      </div>
    </div>

    <div class="col-xs-12 sign-number-area">
      <p class="text-center">您对接的经销商共有<span id="checked_in_numbers"></span>人，该环节尚有<span id="unchecked_in_numbers"></span>人未签到。</p>
    </div>
    <div class="col-xs-12 select-area hidden">
      <div class="col-xs-9 select-box-area">
        <input type="text" id="key_word" placeholder="请输入经销商姓名或手机号码"/>
      </div>
      <div class="col-xs-3">
        <button type="button" id="search-button">搜 索</button>
      </div>
    </div>

    <div class="col-xs-12 text-center">
      <div class="col-xs-12 sign-area">
        <div id="checked_attendee" class="col-xs-4 col-xs-offset-2">
          <button class="btn unsign-active">已签到</button>
        </div>
        <div id="not_checked_attendee" class="col-xs-4">
          <button class="btn sign-active">未签到</button>
        </div>
      </div>
    </div>

    <div class="col-xs-12 table-area">
      <table id="attendee-table">
        <tr id="table_head" class="bg-cell">
          <th>姓名</th>
          <th>公司</th>
          <th>签到时间</th>
          <th>电话</th>
        </tr>
      </table>
    </div>
  </div>
</div>

<% content_for :style do %>
  <%= stylesheet_link_tag 'seller_checkins_show', media: 'all' %>
<% end %>

<% content_for :script do %>
  <%= javascript_include_tag "seller_checkins_show" %>
<% end %>